package cn.lg.soar.system.auth.client;

import cn.lg.soar.core.annotations.ApiClient;
import cn.lg.soar.system.api.constant.ModuleConst;
import cn.lg.soar.system.api.service.IUserCurrBindApi;
import cn.lg.soar.system.auth.service.IUserCurrBindService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

import java.io.Serializable;
import java.util.Map;

/**
 * @author luguoxiang
 * @date 2022/1/3
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@ApiIgnore
@ApiClient("boot")
@RestController
@RequestMapping(ModuleConst.CLIENT_PATH + "/UserCurrBind")
public class UserCurrBindApiClient implements IUserCurrBindApi {

    @Autowired
    private IUserCurrBindService service;

    @PostMapping("set")
    @Override
    public boolean set(@RequestBody Map<String, Serializable> map) {
        return service.set(map);
    }

    @GetMapping("get")
    @Override
    public Map<String, Object> get() {
        return service.get();
    }

}
